package com.qcy.jwtdemo.controller;



import com.qcy.jwtdemo.pojo.param.AdminLoginParam;
import com.qcy.jwtdemo.service.LoginService;
import com.qcy.jwtdemo.util.response.JsonResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;


@Slf4j
@RestController
public class LoginController {

    @Autowired
    private LoginService loginService;



    @PostMapping("/passport/admin/login")
    public JsonResult adminLogin(@RequestBody AdminLoginParam adminLoginParam) {
        loginService.login(adminLoginParam);


        return JsonResult.ok();
    }



}
